/*
* Copyright (c)  2017, ueboot.com
* All rights reserved.
* 2017-10-29 11:39:14
*/
package com.ueboot.weishop.api.controller.order.vo;


import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.AssertTrue;
import javax.validation.constraints.NotNull;

/**
*  Created by yangkui  on 2017-10-29 11:39:14.
* @author yangkui
* @since 2.0 by autocode
*/
@Data
@NoArgsConstructor
public class OrderReq {
    /**
     * 活动代码
     */
    @NotEmpty
    private String sn;

    /**
     * 活动ID，针对秒杀活动，必须传ID
     */
    private Long actId;

    /**
     * 商品ID
     */
    @NotNull
    private Long goodsInfoId;
    /**
     * 商品销售规格ID
     */
    private Long goodsSalesSpecId;
    /**
     * 订单商品数量
     */
    @NotNull
    private Integer goodsInfoCount;

    private String goodsName;

    /**
     * 客户的车辆vin码，当校验是否允许重复购买的类型为VIN时，必须有值
     */
    private String customerVin;
    /**
     * 客户的车辆手机号
     */
    private String customerMobile;

	/**
	 * 是否需要发票以及合同
	 */
	private Boolean needInvoice = Boolean.FALSE;

	/**
	 * 发票信息ID
	 */
	private Long invoiceId;

	/**
	 * 邮寄地址ID
	 */
	private Long addressId;

    /**
     * 目标经销商
     */
    private String targetDealer;
    /**
     * 目标经销商代码
     */
    private String targetDealerCode;

    /**
     * 车型
     */
    private String carType;

    //-----以下字段用于提交给MQ使用，页面无需提交
    /**
     * 请求标识
     */
    private String requestId;

    private String keyForLimit;

    private String orderNo;

    private Integer payAmount;
    private Integer limitCount;
    private String openId;
    private String countKey;
}